package com.linkhub.oms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.linkhub.oms.common.enums.mp.BoolEnum;
import com.linkhub.oms.common.enums.mp.DataStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.FieldNameConstants;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author Redball
 * @version 1.0.0
 * @Description CountryTaxEntity
 * @createTime 2024-07-04 01:44:07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "t_country_tax", autoResultMap = true)
@ApiModel(value = "CountryTaxEntity对象", description = "国家关税表对象")
@FieldNameConstants
public class CountryTaxEntity {

    @ApiModelProperty(value = "主键")
    @TableId(value = "Fid", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "国家代码")
    @TableField("Fcountry_code")
    private String countryCode;

    @ApiModelProperty(value = "是否属于欧盟：0-否；1-是")
    @TableField("Fis_eu")
    private BoolEnum isEu;

    @ApiModelProperty(value = "增殖税税率(%)")
    @TableField("Fvat_rate")
    private BigDecimal vatRate;

    @ApiModelProperty(value = "起征点(USD美元)")
    @TableField("Ftax_threshold")
    private BigDecimal taxThreshold;

    @ApiModelProperty(value = "shipo手续费率(%)")
    @TableField("Fhandling_fee_rate")
    private BigDecimal handlingFeeRate;

    @ApiModelProperty(value = "数据状态：1-有效；0-无效")
    @TableField("Fdata_status")
    private DataStatusEnum dataStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField("Fcreated_time")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("Fupdate_time")
    private LocalDateTime updateTime;

}